<%--
	* Copyright: coolmoon Software Design Co,.ltd
	* Created on 2013-8-8-下午11:21:38
	* @author lenovo
	* JSP页面功能描述: 
	
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="sitemesh-decorator" prefix="decorator" %>
<%@ taglib uri="http://acegisecurity.org/authz" prefix="authz"%>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="security"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title><decorator:title default="房产中介系统" /></title>
	<link href="${pageContext.request.contextPath}/stylesheets/stylesheet.css" rel="stylesheet" type="text/css"/>
	<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-1.10.1.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/common.js"></script>
	<!-- script代码 -->
	<script type="text/javascript">
	<!--
		var Constant_System_BasePath = '<%=(request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/")%>';
		var all_width;
		var all_height;
		var cityId;
		var cityName;
		var menu = "";
		$(document).ready(function(){
			cityId = $("#cityLabel").attr("cityId");
			cityName = $("#cityLabel").text();
			all_width = getWindowWidth();
	 		all_height = getWindowHeight()-40;
	 		menu += "<a href=\"${pageContext.request.contextPath}/houseInfoRentPub.html?cityId="+cityId+"\">发布租房信息</a>"
	 			 + "<a style=\"margin-left:5px;\" href=\"${pageContext.request.contextPath}/houseRentQuery/realEstate/index.html?cityId="+cityId+"&cityName="+encodeURI(encodeURI(cityName))+"\">查找租房信息</a>"
	 			 + "<a style=\"margin-left:5px;\" href=\"${pageContext.request.contextPath}/chatroom/index.wf\">聊天室</a>"
	 			 + "<a style=\"margin-left:5px;\" href=\"${pageContext.request.contextPath}/realEstate/login.wf\">登录</a>"
	 			 + "<a style=\"margin-left:5px;\" href=\"${pageContext.request.contextPath}/j_spring_security_logout\">注销</a>"
	 			 + "<a style=\"margin-left:5px;\" href=\"${pageContext.request.contextPath}/realEstate/userRegister.wf\">会员注册</a>"
	 			 + "<a style=\"margin-left:5px;\" href=\"${pageContext.request.contextPath}/realEstate/orgRegister.wf\">公司注册</a>";
	 		$("#rightDiv").append(menu);
		});
	//-->
	</script>
	<decorator:head />
</head>
<body onload="<decorator:getProperty property="body.onload"/>;">
	<div id="head" style="width:100%;height:40px;background-color: #BAD0EE;font-size: 14px;">
		<div id="leftDiv" style="float: left;width:30%;text-align: right;">
			<a href="${pageContext.request.contextPath}/realEstate/home.wf">首页</a>
			<label id="cityLabel" cityId="90">上海</label>
			<label style="color: #0066CC; cursor: pointer;" onclick="">切换城市</label>
		</div>
		<div id="rightDiv" style="float: right;">
			
		</div>
	</div>
	<%--正文开始--%>
	<div id="content" style="overflow-y: auto;overflow-x: hidden;clear: both;"><decorator:body /></div>
	<%--正文结束--%>

	
</body>
</html>